<?xml version="1.0" encoding="utf-8" ?>
<entries>
  <entry>
    <name>Chaos Warriors</name>
    <category>3.Core</category>
    <upgrades>
      <upgrade applyToAll="true" name="Mark of Khorne" cost="30" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="true" name="Mark of Nurgle" cost="30" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="true" name="Mark of Tzeentch" cost="20" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="true" name="Mark of Slaanesh" cost="10" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="false" name="Additional Hand Weapon" cost="1" onUpgrade="ReplaceWeapons()"/>
      <upgrade applyToAll="false" name="Halberd" cost="1" onUpgrade="ReplaceWeapons()"/>
      <upgrade applyToAll="false" name="Great Weapon" cost="2" onUpgrade="ReplaceWeapons()"/>
      <upgrade applyToAll="false" name="Shield" cost="1" onUpgrade="ResetWeapons()"/>
    </upgrades>
    <units>
      <unit name="Chaos Warrior" base="Chaos Warrior" cost="15" minimum="10" quantity="10" maximum="30" isPrimary="true">
        <equipment>
          <item name="Hand Weapon" default="true" />
          <item name="Chaos Armour" default="true" fixed="true"/>
        </equipment>
      </unit>
      <unit name="Musician" base="Chaos Warrior" cost="21" replaces="Chaos Warrior" minimum="0" quantity="0" maximum="1">
        <equipment>
          <item name="Hand Weapon" default="true" />
          <item name="Chaos Armour" fixed="true"/>
        </equipment>
      </unit>
      <unit name="Standard Bearer" base="Chaos Warrior" replaces="Chaos Warrior" cost="27" minimum="0" quantity="0" maximum="1">
        <equipment>
          <item name="Hand Weapon" default="true" />
          <item name="Chaos Armour" default="true" fixed="true"/>
        </equipment>
      </unit>
      <unit name="Chaos Champion" base="Chaos Warrior" replaces="Chaos Warrior" cost="27" minimum="0" quantity="0" maximum="1">
        <equipment>
          <item name="Hand Weapon" default="true"/>
          <item name="Chaos Armour" default="true" fixed="true"/>
        </equipment>
      </unit>
    </units>
  </entry>
  <entry>
    <name>Chaos Marauders</name>
    <category>3.Core</category>
    <upgrades>
      <upgrade applyToAll="true" name="Mark of Khorne" cost="30" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="true" name="Mark of Nurgle" cost="30" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="true" name="Mark of Tzeentch" cost="20" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="true" name="Mark of Slaanesh" cost="10" onUpgrade="RemoveMarks()"/>
      <upgrade applyToAll="true" name="Great Weapon" cost="2" onUpgrade="ReplaceWeapons()"/>
      <upgrade applyToAll="true" name="Flail" cost="1" onUpgrade="ReplaceWeapons()"/>
      <upgrade applyToAll="true" name="Light Armour" cost="1"/>      
      <upgrade applyToAll="true" name="Shield" cost="1" onUpgrade="ResetWeapons()"/>
    </upgrades>
    <units>
      <unit name="Marauder" base="Marauder" cost="4" minimum="10" maximum="30" quantity="10" isPrimary="true">
        <equipment>
          <item default="true" name="Hand Weapon"/>
        </equipment>
      </unit>
      <unit name="Musician" base="Marauder" replaces="Marauder" cost="8" minimum="0" maximum="1" quantity="0">
        <equipment>
          <item default="true" name="Hand Weapon"/>
        </equipment>
      </unit>
      <unit name="Standard Bearer" base="Marauder" replaces="Marauder" cost="12" minimum="0" maximum="1" quantity="0">
        <equipment>
          <item default="true" name="Hand Weapon"/>
        </equipment>
      </unit>
      <unit name="Champion" base="Marauder" replaces="Marauder" cost="12" minimum="0" maximum="1" quantity="0">
        <equipment>
          <item default="true" name="Hand Weapon"/>
        </equipment>
      </unit>
    </units>
  </entry>
</entries>